/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2018/10/02     Bernard      The first version
 * 2018/12/27     Jesven       Add SMP schedule
 * 2021/02/02     lizhirui     Add userspace support
 * 2021/12/24     JasonHu      Add user setting save/restore
 */

.global anv_hw_interrupt_enable
anv_hw_interrupt_enable:
    csrs mstatus, a0    /* restore to old csr */
    jr ra

.global anv_hw_interrupt_disable
anv_hw_interrupt_disable:
    csrrci a0, mstatus, 8   /* clear SIE */
    jr ra